<?php $__env->startSection('content'); ?>

    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">活动列表</strong> /
                    <small>List</small>
                </div>
            </div>
            <?php echo $__env->make('admin._flash', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            <hr>

            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-6">
                    <div class="am-btn-toolbar">
                        <div class="am-btn-group am-btn-group-xs">
                            <a href="/admin/active/create" type="button" class="am-btn am-btn-default"><span
                                        class="am-icon-plus"></span> 新增</a>
                            <button type="button" class="am-btn am-btn-default delete_all"><span
                                        class="am-icon-trash-o"></span> 删除
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <hr>


            <div class="am-g">
                <div class="am-u-sm-12">
                    <form class="am-form">
                        <table class="am-table am-table-striped am-table-hover table-main">
                            <thead>
                            <tr style="font-size: 1.6rem">

                                <th class="table-id">ID</th>
                                <th class="table-type" style="width: 200px"  >标题</th>
                                <th class="table-title" style="width: 200px">活动时间</th>
                                <th class="table-author" style="width: 200px"  >报名时间</th>
                                <th class="table-author" style="width: 140px"  >完成打卡数</th>
                                <th class="table-author"style="width: 170px">奖励优惠券适用范围</th>
                                <th class="table-author"style="width: 70px" >优惠券</th>
                                <th class="table-author"style="width: 70px" >所属门店</th>
                                <th class="table-set">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $actives; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=> $a): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr data-id="11" style="font-size: 1.6rem">

                                    <td><?php echo e($k+1); ?></td>
                                    <td>
                                            <?php echo e($a->title); ?>

                                    </td>





                                    <td>
                                        <?php echo e($a->active_start); ?>-<?php echo e($a->active_end); ?>

                                    </td>
                                    <td>
                                        <?php echo e($a->enroll_start); ?>-<?php echo e($a->enroll_end); ?>

                                    </td>
                                    <td>


                                        <label class="am-btn am-btn-default am-btn-xs am-radius">
                                            <?php echo e($a->use_number); ?>次
                                        </label>

                                    </td>


                                    <td>
                                       
                                    </td>
                                    <td>
                                        <label class="am-btn am-btn-danger am-btn-xs am-radius">
                                            <?php echo e($a['coupon']['ratio']); ?>折
                                        </label>

                                    </td>
                                    <td>
                                        <label class="am-btn am-btn-default am-btn-xs am-radius">
                                            <?php echo e($a['store']['name']); ?>

                                        </label>

                                    </td>
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <a href="/admin/active/<?php echo e($a->id); ?>/edit"
                                                   class="am-btn am-btn-primary am-btn-xs"><span
                                                            class="am-icon-pencil-square-o"></span> 编辑
                                                </a>
                                                <a href="/admin/active/<?php echo e($a->id); ?>"
                                                   data-method="delete"
                                                   data-token="<?php echo e(csrf_token()); ?>" data-confirm="确认删除吗?"
                                                   class="am-btn am-btn-danger am-btn-xs del_one">
                                                    <span class="am-icon-trash-o"></span> 删除
                                                </a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>


                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                        

                        <div class="am-cf">
                            <div class="am-fr">
                                
                            </div>
                        </div>
                        <hr/>
                        <p>注：.....</p>
                    </form>
                </div>

            </div>
        </div>

        <footer class="admin-content-footer">
            <hr>
            <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
        </footer>

    </div>


<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin.application', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>